﻿    <div class="site_map" align="left">&nbsp;</div>
    <div class="heading">
        <div class="heading_left"></div>
        <div class="heading_right"></div>
        <div class="heading_center">
            <span style="width: 21px; height: 21px;"><img src="/onlinemarket/img/login.png" style="float: left; margin-top: 10px;"/></span>
        	<h3>Đăng nhập</h3>
        </div>

        <div class="table">
            <h1 id="toptable" style="height: 170px;">&nbsp;</h1>
            <center>
            <form method="post" style="width: 350px; height: 300px;" action="/onlinemarket/logon/check">
                <table class="noborder">
                    <tr>
                        <td colspan="2" id="error" style="color: red; height: 40px; text-align: center; vertical-align: top;">
                            &nbsp;
                            <?php 
                                if(isset($_SESSION['logon_error'])) echo($_SESSION['logon_error']);
                                unset($_SESSION['logon_error']); 
                            ?>
                        </td>
                    </tr>
                    <tr>
                        <td>Tên đăng nhập</td>
                        <td><input type="text" name="username" id="username"/></td>
                    </tr>
                    <tr>
                        <td>Mật khẩu</td>
                        <td><input type="password" name="password" id="password"/></td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td style="text-align: left;">
                            <input style="height: 25px; padding-top: 0.2em;" type="submit" value="Đăng nhập"/>
                        </td>
                    </tr>
                </table>
            </form>
            </center>
        </div>
</div>
<script>
    $("input:submit").button();
</script>
